<div class="gonglve_wrap">

        <#list pageInfo.list as q>
            <div class="bd newcate-bd">
                <ul class="_j_pager_box">
                    <li class="item clearfix _j_question_item" data-qid="793682">
                        <div class="title">
                            <a href="/ask/wendaDetail?id=#{q.id!}" target="_blank">${q.title!}</a></div>
                        <div class="container">
                            <div class="avatar"><a href="javascript:;" target="_blank" class="_j_filter_click"><img
                                            class="_j_filter_click"
                                            src="http://p1-q.mafengwo.net/s11/M00/60/ED/wKgBEFsMrYaAdgz7AABzekir6Rg26.jpeg?imageMogr2%2Fthumbnail%2F%2190x90r%2Fgravity%2FCenter%2Fcrop%2F%2190x90%2Fquality%2F90"></a>
                            </div>
                            <div class="user-info">
                                <a class="name _j_filter_click" href="javascript:;"
                                   target="_blank">${(q.author.nickname)!}</a>
                                <a class="level _j_filter_click" href="javascript:;" target="_blank"
                                   rel="nofollow">LV.${(q.author.level)!}</a>
                            </div>
                            <div class="desc clearfix">
                                <a class="img" href="/ask/wendaDetail?id=#{q.id!}" target="_blank">
                                    <img src="${q.coverUrl!}" width="150" height="100">
                                </a>
                                <p>
                                    ${q.summary!}
                                </p>


                            </div>
                            <div class=" tags">
                                <#list  q.tagsList! as t>
                                    <a class="a-tag _j_filter_click" href="javascript:;"
                                       target="_blank">${(t.name!)}</a>
                                </#list>
                            </div>
                            <div class="operate">
                                <div class="zan" data-id="${q.id}"><i></i>${q.thumbsupnum!0}</div>
                                <div class="mdd"><a href="javascript:;" class="_j_filter_click" target="_blank"><i
                                                class="_j_filter_click"></i>${(q.dest.name)!}</a></div>
                                <div class="cate-share">
                                    <a class="_js_showShare _j_filter_click">分享</a>

                                </div>
                                <span class="reply">回答 (${q.replynum!})</span>
                                <span class="browse">浏览 (${q.viewnum!0})</span>
                                <span class="date">发布于${(q.createTime)?string("yyyy-MM-dd HH:mm:ss")}</span>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </#list>
    <script>
        $(function () {
            //顶：点赞
            $(".zan").click(function () {
                var questionId = $(this).data("id");
                $.get("/ask/questionThumbup", {questionId: questionId}, function (data) {
                    if (data.success) {
                        $(".zan").html("<i></i>"+data.data.thumbsupnum);
                        popup("顶成功啦"); //

                    } else {
                        if (data.code == 102) {
                            popup(data.msg);
                        } else {
                            popup("今天你已经顶过了");
                        }

                    }
                });
            })
        })
    </script>

    <div style="float: right">
        <div style="float: left;" ><span style="line-height:30px"> 共${pageInfo.pages}页 / ${pageInfo.total}条&nbsp;&nbsp;&nbsp;</span></div>
        <div id="pagination" class="jq-pagination" style="display: inline;"></div>
    </div>
    <script>
        $("#pagination").jqPaginator({
            totalPages: ${pageInfo.pages}||1,
            visiblePages: 5,
            currentPage: ${pageInfo.pageNum}||1,
            prev: '<a class="prev" href="javascript:void(0);">上一页<\/a>',
            next: '<a class="next" href="javascript:void(0);">下一页<\/a>',
            page: '<a href="javascript:void(0);">{{page}}<\/a>',
            last: '<a class="last" href="javascript:void(0);" >尾页<\/a>',
            onPageChange: function(page, type) {
            if(type == 'change'){
                $("#currentPage").val(page);
                $("#searchForm").submit();
            }
        }
        })
    </script>

</div>

